/*
 * @Descripttion:
 * @version:
 * @Author:
 * @Date: 2021-10-26 19:14:25
 */
import Vue from 'vue'
import App from './index.vue'
// import router from './router'
// import store from './store'
// import i18n from './i18n/index'
import VueI18n from 'vue-i18n'
// import '@/plugins/vant'
import 'reset-css'
import 'amfe-flexible/index.js'
// import './icons' // icon
import 'windi.css'
// import Vant from 'vant'
import { Lazyload } from 'vant'
import 'vant/lib/index.css'
import { JSEncrypt } from 'jsencrypt'

// if (process.env.NODE_ENV !== 'production') {
// const VConsole = require('vconsole')
// new VConsole()
// }

// Vue.use(Vant)
Vue.use(Lazyload)
Vue.prototype.$encrypt = function (code) {
  const encrypt = new JSEncrypt()
  encrypt.setPublicKey(
    'MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC3JFF4wp7OAJUzJ+9ebr5gMRcLIwrQH44kiUDnCfoEFrWFufRKECpcMA4EzYjbh19Zjfr39qQr94yYUEkQsFa025qgU11YArAOCipoZVyZBS8MbzAMFjd5o58CgdadWr2TzfK9tdn43iMJybiRF0EiVaTdiZkCwhOO+JzfQxEqXQIDAQAB'
  )
  return encrypt.encrypt(code)
}

// 多语言
Vue.use(VueI18n, {
  i18n: (key, value) => i18n.t(key, value)
})

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
